package com.ganbing518.commons.test.annotation.dto;

import com.ganbing518.commons.annotation.EnumValid;
import com.ganbing518.commons.test.annotation.enums.ByteEnum;
import com.ganbing518.commons.test.annotation.enums.IntegerEnum;
import com.ganbing518.commons.test.annotation.enums.LongEnum;
import com.ganbing518.commons.test.annotation.enums.StringEnum;

import javax.validation.constraints.NotNull;

/**
 * Description:
 *
 * @author gan bing
 * @version V1.0
 * @date 2018-06-25 17:16
 */
public class AnnotationDto {

    public AnnotationDto(Integer integer, String string, Byte aByte, Long aLong) {
        this.integer = integer;
        this.string = string;
        this.aByte = aByte;
        this.aLong = aLong;
    }

    public AnnotationDto() {
    }

    @EnumValid(value = IntegerEnum.class)
    private Integer integer;

    @EnumValid(value = StringEnum.class)
    private String string;

    @EnumValid(value = ByteEnum.class)
    private Byte aByte;

    @EnumValid(value = LongEnum.class)
    private Long aLong;

    public Integer getInteger() {
        return integer;
    }

    public void setInteger(Integer integer) {
        this.integer = integer;
    }

    public String getString() {
        return string;
    }

    public void setString(String string) {
        this.string = string;
    }

    public Byte getaByte() {
        return aByte;
    }

    public void setaByte(Byte aByte) {
        this.aByte = aByte;
    }

    public Long getaLong() {
        return aLong;
    }

    public void setaLong(Long aLong) {
        this.aLong = aLong;
    }
}
